Reference for Moed Katan 36:18
תא שמע (תהלים קו, טז) ויקנאו למשה במחנה לאהרן קדוש ה' רב שמואל בר יצחק אמר מלמד שכל אחד קינא לאשתו ממשה התם משום שנאה הוא דעבוד
And Rab said [also this] in the name of R'Reuben B'Estrobile: 'A person does not incur suspicion unless he has done the thing [suspected]; and if he has not done it wholly he has done it partly; and if he has not done it partly, he has a mind to do it; and if he has not had a mind to do it, he has seen others doing it and enjoyed [the sight of it]'. [As against this], R'Jacob [of Nehar Pekod]<span class="x" onmousemove="('comment',' So MS.M. and parallels.');"><sup>30</sup></span> raised an objection [from the following text]: 'And the children of Israel did impute things that were not right unto the Lord their God.<span class="x" onmousemove="('comment',' II Kings, XVII, 9. Surely, God has not been guilty of improper intentions. Yet ill is imputed to Him.');"><sup>31</sup></span>